﻿package org.openChart.display.chart 
{
	import flash.media.Video;
	import org.openChart.display.DisplayElement;
	import org.openChart.display.DisplayGroup;
	import org.openChart.display.DisplayInterface;
	import org.openChart.meta.data.DataElement;
	/**
	 * ...
	 * @author Chongyuan
	 */
	public class DisplayBarElement extends DisplayElement
	{
		private var height_:Number;
		private var width_:Number;
		private var topWidth_:Number;
		//private var screen_:DisplayBarScreen;
		private var size_:Number;
		private var selectedSize_:Number;
		private var showValue_:String;
		private var showLine_:Boolean;
		
		public function DisplayBarElement( element:DataElement, group:DisplayGroup ) 
		{
			this.size = element.getStyle().size;
			this.selectedSize = element.getStyle().selectedSize;
			this.showValue_ = element.getStyle().showValue;
			super(element, group);
		}
		
		public function set height( height_:Number):void
		{
			this.height_ = height_;
		}
		
		public function get height():Number
		{
			return this.height_;
		}
		
		public function set width( width_:Number ):void
		{
			this.width_ = width_;
		}
		
		public function get width():Number
		{
			return this.width_;
		}
		
		public function set topWidth( topWidth_:Number ):void
		{
			this.topWidth_ = topWidth_;
		}
		
		public function get topWidth():Number
		{
			return this.topWidth_;
		}
		
		public function set size( size_:Number ):void
		{
			this.size_ = size_;
		}
		
		public function get size():Number
		{
			return this.size_;
		}
		
		public function set selectedSize( selectedSize_:Number ):void
		{
			this.selectedSize_ = selectedSize_;
		}
		
		public function get selectedSize():Number
		{
			return this.selectedSize_;
		}
		
		public function set showLine( showLine_:Boolean ):void
		{
			this.showLine_ = showLine_;
		}
		
		public function get showLine():Boolean
		{
			return this.showLine_;
		}
		
		public override function toString():String
		{
			var str:String = "\nObject:DisplayBarElement ";
			str += "[height = " + height + "]";
			str += "[width = " + width + "]";
			str += "[topWidth = " + topWidth + "]";
			str += "[size = " + size + "]";
			str += "[selectedSize = " + selectedSize + "]";
			str += "[showLine = " + showLine + "]";
			str += super.toString();
			return str;
			
		}
	}
	
}